<div ng-controller="orderDetailController" class="m-container">
    <div class="m-orderDetail" ng-show="path1 == 'orderDetail' && !path2" >
      <main class="main {{data.tradeState==1?'h100  ':''}}" scroll-down2>
        <div class="baseInfo">
            <p class="dfr jssb aife p1">
                <span class="c6a6 ls1">订单编号: {{data.no}}</span>
                <span class="dfr aic jsfe count"><span class="c6a6 ls1">共{{data.goods.length}}件</span></span>
            </p>
            <p class="dfr jssb aic p2"><span class="c6a6 ls1">{{data.name}}</span><span class="c6a6 ls1">{{data.telephone}}</span></p>
            <div class="address">
                <p class="c929">采样工具寄送地址</p>
                <p>{{data.samplingReceiveAddress}}</p>
            </div>
            <div class="address">
                <p class="c929">检测报告寄送地址</p>
                <p>{{data.reportReceiveAddress}}</p>
            </div>
        </div>
        <ul>
            <li ng-repeat="item in data.goods" class="productLi"  >
                <product-item2 ui-sref="productDetail({id:item.id})"></product-item2>
                <div class="comment" ui-sref="comment({id:item.id})" ng-show="data.tradeState==1">立即评价</div>
            </li>
        </ul>
        <div class="bottomInfo" >
            <p class="dfr jssb aic discount" ng-show="data.discountPrice > 0" ui-sref="orderDetail.coupons"><span>优惠券</span><span>-<span class="f12">￥</span>{{data.discountPrice}}</span>
            </p>
            <p class="dfr jssb aic contract" ui-sref="orderDetail.service" ng-show="data.tradeState == 1 && false"><span>电子合同</span></p>
            <p class="dfr jssb aic" ng-show="data.tradeState == 1"><span>合计</span><span><span class="f12">￥</span>{{data.price}}</span>
            </p>
            
        </div>
      </main>
        <footer class="bottom dfr aic" ng-show="data.tradeState == 0 && ((data.orderType == 1 && identity == 0)||(data.orderType == 0 && identity == 1) )">
            <div class="total">合计:<span class="f12 cmain">￥</span><span class="cmain">{{data.price}}</span></div>
            <button class="pay" ng-click="getPrepay(data.orderId)" ng-disabled="paying " pointer-disable>立即支付</button>
        </footer>
    </div>
    <!-- <div ng-include="'components/order/contract.html'" ng-show="path1=='orderDetail' && path2 == 'contract'"></div> -->
    <div ng-include="'components/order/orderDetail/couponUsed.html'" ng-show="path1=='orderDetail' && path2 == 'coupons'"></div>
</div>